﻿<%@ page title="" language="C#" masterpagefile="~/MasterPages/MasterPagePrivate.master" autoeventwireup="true" inherits="Pages_Admin_NewsEdit, BtcHousing" stylesheettheme="ServerControls" %>
<%@ Register Src="~/UserControls/jQueryCalendar.ascx" TagName="jQueyrCalendar" TagPrefix="UC" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
    <UC:jQueyrCalendar ID="ucjQueryCalendar" runat="server" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <h4 id="h4Heading" runat="server">Add News</h4>    
    <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
    <div class="clearboth"></div>
    
    <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSave">
        <%--News Information Group Box Start--%>       
        <div class="WizardContainer">
            <div class="StepHeaderContainer">
                <div class="StepHeading">
                    <asp:Label ID="lblFormTitle" runat="server" Text="General Information"></asp:Label>
                </div>
                <div class="StepSubHeading"><asp:Label ID="lblFormSubTitle" runat="server" Text="Define a News and its Description."></asp:Label></div>
            </div>
            <div class="StepBody">
                <table cellpadding="3" cellspacing="0" style="width:100%;">
                    <colgroup>
                        <col style="width:15%;" />
                        <col />                                        
                    </colgroup>
				    <tr>
					    <td>Title<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtTitle" MaxLength="250" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvTitle" runat="server"
							    ControlToValidate="txtTitle" SetFocusOnError="true"
							    ErrorMessage="Please Enter a Title." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
                    <tr>
					    <td>Publish Date<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtPublishedOn" MaxLength="50" CssClass="CalendarTextBox" runat="server"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvPublishedOn" runat="server"
							    ControlToValidate="txtPublishedOn" SetFocusOnError="true"
							    ErrorMessage="Please Select a Publish Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
						    <asp:CustomValidator ID="cvPublishedOn" runat="server"
							    ControlToValidate="txtPublishedOn" SetFocusOnError="true"
							    ClientValidationFunction="ValidateDate"
							    ErrorMessage="Please Select a Valid Date." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:CustomValidator>
					    </td>
				    </tr>
				    <tr>
					    <td>Picture</td>
					    <td>                            
						    <asp:FileUpload ID="fuImage1" runat="server" />
                            <asp:HyperLink ID="hplImage1" runat="server" Visible="false" Target="_blank"/>
					    </td>
				    </tr>
				    <tr>
					    <td>News Content<span class="requiredMark">*</span></td>
					    <td>
						    <asp:TextBox ID="txtNewsContent" TextMode="MultiLine" MaxLength="8000" runat="server" style="height:200px;"></asp:TextBox>
						    <asp:RequiredFieldValidator ID="rfvNewsContent" runat="server"
							    ControlToValidate="txtNewsContent" SetFocusOnError="true"
							    ErrorMessage="Please Enter a NewsContent." Display="Dynamic"
							    ValidationGroup="SaveInfo">
						    </asp:RequiredFieldValidator>
					    </td>
				    </tr>
				    
				    <%--<tr>
					    <td>Picture</td>
					    <td>
                            <asp:Image ID="image2" runat="server" Visible="false" />
						    <asp:FileUpload ID="fuImage2" runat="server" />
					    </td>
				    </tr>
				    <tr>
					    <td>Picture</td>
					    <td>
                            <asp:Image ID="image3" runat="server" Visible="false" />
						    <asp:FileUpload ID="fuImage3" runat="server" />
					    </td>
				    </tr>--%>				                      
                </table>
            </div>
            <div class="StepButtonContainer">
                <asp:Button ID="btnSave" runat="server" Text="Save" ValidationGroup="SaveInfo" OnClick="btnSave_Click" />           
                           
            </div>
        </div>
        <%--News Information Group Box End--%>
   </asp:Panel> 
</asp:Content>

